package top.laoshuzi.cloudplatform.servo.util;

/**
 * Created by mouse on 2017/12/28.
 */

public class ServoProtocol {

    public static final String NAME = "Servo";

    public static class ServoControl {

        public static final String NAME = "ServoControl";

        public static class ControlCode {

            public static final int ORIENTATION_MASK = 3;
            public static final int ANGLE_VALUE_MASK = 3 << 2;

            public static final int HORIZONTAL_MOVE = 1;
            public static final int VERTICAL_MOVE = 2;

            public static final int INCREASE_ANGLE = 1;
            public static final int DECREASE_ANGLE = 2 << 2;
            public static final int SET_ANGLE = 3 << 2;

        }

    }


}
